package guoanmaker.operator.business.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import guoanmaker.operator.business.service.OperatorBackLoginServiceInterface;
import guoanmaker.operator.helper.common.AjaxJson;
import guoanmaker.operator.helper.common.abstractobj.ApiController;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping(ApiController.OPERATOR_BACK_LOGIN)
public class OperatorBackLoginController {
	@Autowired
	private OperatorBackLoginServiceInterface operatorBackLoginServiceInterface;
	@ApiOperation(value = "运营登录页面配置接口", notes = "运营登录页面配置接口")
    @RequestMapping(value = "/getAllBackLogin", method = RequestMethod.POST)
    public AjaxJson getAllBackLogin(){
		AjaxJson ajaxJson=new AjaxJson();
		try{
		Map map=operatorBackLoginServiceInterface.selectBackLogin();
		ajaxJson.setSuccess(true).setStatus(200).setData(map);
		}catch(Exception e){
			ajaxJson.setSuccess(true).setStatus(250).setData(null);
		}
        return ajaxJson;
    }
}
